home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
F1 Licenseware
/
F1 Licenseware - Volume 1.iso
/
disks
/
049b.dms
/
049b.adf
/
MORE_SOURCE_CODE
/
Anagram_Maker.AMOS
/
Anagram_Maker.amosSourceCode
Wrap
AMOS Source Code
|
1992-02-26
|
352b
|
20 lines
'Anagram Maker
'By Thomas Lancaster
Cls 0 : Paper 0 : Pen 2
Repeat
Input "Word to shuffle ";WORD$
SIZE=Len(WORD$)
Until SIZE>1
Print
Dim USED(SIZE)
NEW_WORD$=""
For COUNT=1 To SIZE
Repeat
LETTER=Rnd(SIZE-1)+1
Until USED(LETTER)=0
USED(LETTER)=1
LETTER$=Mid$(WORD$,LETTER,1)
NEW_WORD$=NEW_WORD$+LETTER$
Next COUNT
Print "The Anagram is ";NEW_WORD$